package com.treeroot.orderservice.order.client.DegradeFeignClient;

import com.treeroot.commonutils.exceptionhandler.MyException;
import com.treeroot.commonutils.ordervo.PlaneInfoOrder;
import com.treeroot.commonutils.ordervo.UserInfoOrder;
import com.treeroot.commonutils.result.R;
import com.treeroot.orderservice.order.client.PlaneClient;
import com.treeroot.orderservice.order.client.UserClient;
import feign.hystrix.FallbackFactory;
import jdk.nashorn.internal.ir.Flags;
import jdk.nashorn.internal.ir.LexicalContextNode;
import org.springframework.stereotype.Component;

/**
 * @Description: 接口中的泛型为要对其进行错误处理的接口
 * @Author:treeRoot
 * @Email:553503639@qq.com
 * @Date: Create in 13:58 / 2022/6/7
 */
@Component
public class getPlaneInfoDegradeFeignClient implements FallbackFactory<getPlaneInfoDegradeFeignClient> {


    @Override
    public getPlaneInfoDegradeFeignClient create(Throwable cause) {
        System.out.println("获取航班基本信息出错");

        return null;
    }
}
